x = 20 if x % 10 == 0: print "%d %s" %(x, "jest parzyste i podzielne przez 5") # better form x = 20 if x % 2 == 0: if x % 5 == 0: print "%d %s" % (x, "jest parzyste i podzielne przez 5")